import { Chip } from "@mui/material";
import React from "react";

export default function GetChipType(props) {
  //
  return (
    <>
      {props.value == 0 && (
        <Chip
          label="申请中"
          color="warning"
          variant="outlined"
          sx={{ marginLeft: -1, mt: 0 }}
        />
      )}
      {props.value == 1 && (
        <Chip
          label="申请已通过"
          color="success"
          variant="outlined"
          sx={{ marginLeft: -1, mt: 0 }}
        />
      )}
      {props.value == 2 && (
        <Chip
          label="申请未通过"
          color="error"
          variant="outlined"
          sx={{ marginLeft: -1, mt: 0 }}
        />
      )}
    </>
  );
}
